import Vue from "vue";
import Router from "vue-router";

import Main from "@/views/main/index.vue"
import Login from "@/views/login/index.vue"


// 组织结构管理页
import Org from './org'
//开通体验
import Experience from './experience'
// 基础数据页
import BaseData from './baseData'
// 我的应用
import App from './app'
import appDesign from "@/views/app/appDesign/index.vue"
import installApp from "@/views/app/installApp/index.vue"
import AppSaleList from '@/views/appSaleList/index.vue'
import experience_deploy from "@/views/experience/deploy.vue"

Vue.use(Router);

const router = new Router({
    mode: "hash",
    routes: [
        {
            path:"", redirect: "/login"
        },
        {
            path: "/login",
            component: Login,
        },
        {
            path: "/app/appDesign",
            component: appDesign,
        },
        {
            path: "/app/installApp",
            component: installApp,
        },
        {
            path: "/experience/deploy_page",
            component:experience_deploy
        },
        {
            path: "/main",
            component: Main,
            children: [
                {
                    path:"", redirect: "/main/app"
                },
                App,
                {
                    name: 'saleList',
                    path: 'saleList',
                    component: AppSaleList
                }
            ]
        },
        Org,
        Experience,
        BaseData
    ]
});
export default router